package com.enjoyor.soa.traffic.api.dto.collectms;

import java.util.ArrayList;
import java.util.List;

import com.enjoyor.soa.traffic.util.bean.base.ABean;

/**   
* @Title: TreePojoDto.java
* @Package com.enjoyor.soa.traffic.core.collectms.pojo 
* @Description: EasyUI树对应的实体类
* @author sxh
* @date 2016年3月8日 下午1:56:34 
* @version V1.0   
*/
public class TreePojoDto extends ABean{
	
	/**  */
	private static final long serialVersionUID = 2766569296089122039L;
	private String id;    
    private String text;
    private String state;//状态
    private Boolean checked;//选中状态
    private Object attributes;//属性
    private List<TreePojoDto> children = new ArrayList<TreePojoDto>();
    
    public TreePojoDto(){
    	
    }
    /**
     * @param id
     * @param text
     * @param state
     * @param checked
     * @param attributes
     */
    public TreePojoDto(String id, String text, String state, Boolean checked, Object attributes){
    	this.id = id;
    	this.text = text;
    	this.state = state;
    	this.checked = checked;
    	this.attributes = attributes;
    }
    
    public void AddChildren(TreePojoDto pojo){
    	children.add(pojo);
    }
    
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}
	/**
	 * @param text the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}
	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}
	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}
	/**
	 * @return the checked
	 */
	public Boolean getChecked() {
		return checked;
	}
	/**
	 * @param checked the checked to set
	 */
	public void setChecked(Boolean checked) {
		this.checked = checked;
	}
	
	/**
	 * @return the attributes
	 */
	public Object getAttributes() {
		return attributes;
	}
	/**
	 * @param attributes the attributes to set
	 */
	public void setAttributes(Object attributes) {
		this.attributes = attributes;
	}
	/**
	 * @return the children
	 */
	public List<TreePojoDto> getChildren() {
		return children;
	}
	/**
	 * @param children the children to set
	 */
	public void setChildren(List<TreePojoDto> children) {
		this.children = children;
	}
    
}
